<template>
	<view class="container">
		<image :src="imgUrl" :mode="mode" class="img"  @click="aaclick()"></image>
		<view class="text">
			<button v-text="btnTxt" @click="aaclick()"></button>
		</view>
	</view>
</template>

<script>
	export default {
		name:"card",
		props:['btnTxt',"imgUrl","btnUrl","mode"],
		data() {
			return {
				
			};
		},
		methods:{
			aaclick(){
				this.$emit("click")
			}
		}
	}
</script>

<style scoped >
	.container{
		border-radius: 20rpx;
		margin: 40rpx;
		width: 90%;
		height: 400rpx;
	}
	.img{
		border-radius: 20rpx ;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		width: 100%;
		height: 75%;
	}
	.text{
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 10rpx 0;
		
	}
	.text button{
		color: #e8e8e8;
		width: 100%;
		background-color: #3c9a77;
		border-radius: 20rpx;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		cursor: pointer;
	}
</style>
